package off_transaction

import (
	// "bp/cache"
	sqlc "bp/db/sqlc"
	// "bp/internal/util"
)

func (s *OffTransactionEntityServiceImp) MapOffTransactionEntityToPtr(list []sqlc.OffTransaction) []*sqlc.OffTransaction {
	ptrs := make([]*sqlc.OffTransaction, len(list))
	for i := range list {
		ptrs[i] = &list[i]
	}
	return ptrs
}

func (s *OffTransactionEntityServiceImp) MapOffTransactionDetailEntityToPtr(list []sqlc.OffTransactionDetail) []*sqlc.OffTransactionDetail {
	ptrs := make([]*sqlc.OffTransactionDetail, len(list))
	for i := range list {
		ptrs[i] = &list[i]
	}
	return ptrs
}